/*
 * CustomerBO.java
 *
 * Created on February 13, 2007
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package finalintex2web;
import java.util.*;

/**
 * Business object for customers
 * @author craig marshall
 */
public class CustomerBO {
    
    private String id, firstname = null, lastname = null, phone = null, address = null, email = null;
    private MemberBO membership = null;
    private boolean dirty = false, indb = false;
    
    
    /** Creates a new instance of CustomerBO */
    CustomerBO(String id) {
        this.setId(id);
        
    }
    
    /**
     * 
     * @return 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(String id) {
        this.id = id;
        this.dirty = true;
    }

    /**
     * 
     * @return 
     */
    public String getFirstname() {
        return firstname;
    }

    /**
     * 
     * @param firstname 
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
        this.dirty = true;
    }

    /**
     * 
     * @return 
     */
    public String getLastname() {
        return lastname;
    }

    /**
     * 
     * @param lastname 
     */
    public void setLastname(String lastname) {
        this.lastname = lastname;
        this.dirty = true;
    }

    /**
     * 
     * @return 
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 
     * @param phone 
     */
    public void setPhone(String phone) {
        this.phone = phone;
        this.dirty = true;
    }

    /**
     * 
     * @return 
     */
    public String getAddress() {
        return address;
    }

    /**
     * 
     * @param address 
     */
    public void setAddress(String address) {
        this.address = address;
        this.dirty = true;
    }
    
    /**
     * 
     * @return 
     */
     public String getEmail() {
        return email;
    }

    /**
     * 
     * @param email 
     */
    public void setEmail(String email) {
        this.email = email;
        this.dirty = true;
    }

    /**
     * 
     * @return 
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * 
     * @param dirty 
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
        
    }

    /**
     * 
     * @return 
     */
    public boolean isIndb() {
        return indb;
    }

    /**
     * 
     * @param indb 
     */
    public void setIndb(boolean indb) {
        this.indb = indb;
        this.dirty = true;
    }

    /**
     * 
     * @return 
     */
    public MemberBO getMembership() {
        return membership;
    }

    /**
     * 
     * @param membership 
     */
    public void setMembership(MemberBO membership) {
        this.membership = membership;
        this.dirty = true;
    }


}